package com.github.binarywang.demo.wx.mp.mapper;

import com.github.binarywang.demo.wx.mp.beans.HaoZhu;
import org.apache.ibatis.annotations.Mapper;
import org.springframework.stereotype.Repository;

import java.util.List;

/**
 *
 */
@Mapper
@Repository
public interface Haozhumapper {//号主的信息获取

    //查看全部号主

    /**
     * @param role
     * @return
     */
    List<HaoZhu> getAllByrole(String role);
    //查看号主总数
    int countHZNumByrole(String role);
    //根据ID查看号主
    HaoZhu selectByName(String Name);
    //注册号主
    void registerHZ(HaoZhu haoZhu);
    //登录号主
    HaoZhu loginHZ(HaoZhu haoZhu);
    //删除号主
    void deleteHZById(String HaoZhuId);
    //更新号主
    void updateHZById(HaoZhu haoZhu);

    String findPswByName(String username);

    //通过haozhuid获取id
    Long getIdbyhaozhuid(String hao_zhu_id);

}
